import java.util.Scanner;

public class Test{
        public static void main(String[] args) {
                Scanner sc=new Scanner(System.in);
                String s=sc.nextLine();
                int j=s.length()-1;
                int i=0;
                System.out.println(s);
                boolean fag=false;
                while(i<(s.length()/2)){
                        char c=s.charAt(i);
                        if(c==s.charAt(j)){
                                j--;
                                i++;
                        }else{
                                System.out.print("No");
                                fag=true;
                                break;
                        }
                }
                if(fag==false){
                        System.out.print("Yes");
                }
        }
}